package com.cskaoyan.bytestream;

import java.io.FileOutputStream;
import java.io.IOException;

/**
 * @description: 文件追加
 * @author: songtao@cskaoyan.onaliyun.com
 **/

public class Demo4 {
    public static void main(String[] args) throws IOException {
        // 利用append参数
        FileOutputStream out = new FileOutputStream("a.txt", true);
        out.write("hhhh".getBytes());
        // close
        out.close();
    }
}
